package com.tianzehua.jvm.classloader;

/**
 *  类加载器Test
 * @author tianzehua
 * @date 2019/03/31
 */
public class MyTest8 {
    public static void main(String[] args) throws  Exception {
        Class<?> clazz1 = Class.forName("java.lang.String");
        System.out.println(clazz1.getClassLoader());

        Class<?> clazz2 = Class.forName("com.tianzehua.jvm.classloader.C");
        System.out.println(clazz2.getClassLoader());
    }
}
class C{

}
